const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  //关闭eslint语法检查
  lintOnSave: false,
  //配置相对路径,打包需要做这个
//   publicPath: "/orderShop/",

  devServer: {
    port: 90,
    open: true,
    proxy: {
      "/prod-api": {
        target: `http://127.0.0.1:8080`,
        pathRewrite: {
          ["^/prod-api"]: "",
        },
      },
    },
  },
});
